<script type="text/javascript">
<!--
if(top.location!=self.location)
{
	top.location=self.location;
}
//-->
</script>
<form method="post" id="login">
<div class="login_bg">
	<h1><img src="http://static.cy2009.com/image/admin/logo.png" /></h1>
	<ul>
        <li class="login_01"><span>用户名：</span><input id="username" name="username" type="text" class="login_01a" /></li>
        <li class="login_01"><span>密码：</span><input id="password" name="password" type="password" class="login_01a"  /></li>
        <li><span>&nbsp;</span><input id="loginbtn" class="btn01 Left" type="button" value="登录" style="cursor:pointer;"/>
		<!--<a href="#" class="login_02">忘记密码?</a>--></li>
        <div class="clear"></div>
	</ul>
</div>
</form>
<script type="text/javascript">
<!--
$(document).ready(function(){
	$('#login').bind('submit',function(){
		if($.trim($('#username').val())=='')
		{
			alert('请输入用户名!');
			return false;
		}
		if($.trim($('#password').val())=='')
		{
			alert('请输入密码!');
			return false;
		}
	});
	$('#loginbtn').click(function(){
		$('#login').submit();
	});
	$('#username').keydown(function(event){
		$('#warnmsg').empty();
		if(event.keyCode==13)
		{
			$('#password').focus();
		}
	});
    $('#password').keydown(function(event){
		$('#warnmsg').empty();
        if(event.keyCode==13)
        {
            $('#login').submit(); 
        }
    });
});
//-->
</script>